package com.mog.api.feignClients;

import com.mog.api.config.FeignClientConfig;
import entity.pojo.Album;
import entity.resullt.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "album-service", path = "/user/album", configuration = FeignClientConfig.class)
public interface AlbumClient {
    @GetMapping("/{id}")
    Result<Album> getById(@PathVariable String id);
}
